/**
 * 
 */
package web.common.entity;

import java.util.Date;
import java.util.List;

/**
 * 项目名称：ebs 
 * @ClassName: Bmprovider
 * @author ZK JIA<br>
 * 创建时间： 2013-11-6 下午09:59:54<br>
 * @version 1.1<br>
 * 描述: TODO(建材提供商)<br>
 */

public class Bmprovider extends BaseEntity{
	
	
	
  

		/**
	
	* <p>Title: </p>
	
	* <p>Description: </p>
	
	* @param createTime
	* @param updateTime
	* @param createBy
	* @param provideCode
	* @param userCode
	* @param introductionCode
	* @param areaCode
	* @param address
	* @param user
	* @param area
	* @param atticles
	* @param images
	* @param products
	
	*/
	public Bmprovider(Date createTime, Date updateTime, String createBy,
			String provideCode, String userCode, String introductionCode,
			String areaCode, String address, User user, Area area,
			List<Article> atticles, List<Image> images, List<Product> products) {
		super(createTime, updateTime, createBy);
		this.provideCode = provideCode;
		this.userCode = userCode;
		this.introductionCode = introductionCode;
		this.areaCode = areaCode;
		this.address = address;
		this.user = user;
		this.area = area;
		this.atticles = atticles;
		this.images = images;
		this.products = products;
	}
		private String provideCode;
		private String userCode;
		private String introductionCode;//简介编码
		private String areaCode;
		private String address;
   
		private User user;
		private Area area;
		private List<Article> atticles;
		private List<Image> images;
		private List<Product> products;
		
		public String getProvideCode() {
			return provideCode;
		}
		public void setProvideCode(String provideCode) {
			this.provideCode = provideCode;
		}
		public String getUserCode() {
			return userCode;
		}
		public void setUserCode(String userCode) {
			this.userCode = userCode;
		}
		public String getIntroductionCode() {
			return introductionCode;
		}
		public void setIntroductionCode(String introductionCode) {
			this.introductionCode = introductionCode;
		}
		public String getAreaCode() {
			return areaCode;
		}
		public void setAreaCode(String areaCode) {
			this.areaCode = areaCode;
		}
		public String getAddress() {
			return address;
		}
		public void setAddress(String address) {
			this.address = address;
		}
		public User getUser() {
			return user;
		}
		public void setUser(User user) {
			this.user = user;
		}
		public Area getArea() {
			return area;
		}
		public void setArea(Area area) {
			this.area = area;
		}
		
		
		public List<Article> getAtticles() {
			return atticles;
		}
		public void setAtticles(List<Article> atticles) {
			this.atticles = atticles;
		}
		
		
		public List<Image> getImages() {
			return images;
		}
		public void setImages(List<Image> images) {
			this.images = images;
		}
		public List<Product> getProducts() {
			return products;
		}
		public void setProducts(List<Product> products) {
			this.products = products;
		}
		@Override
		public int hashCode() {
			final int prime = 31;
			int result = 1;
			result = prime * result
					+ ((provideCode == null) ? 0 : provideCode.hashCode());
			return result;
		}
		@Override
		public boolean equals(Object obj) {
			if (this == obj)
				return true;
			if (obj == null)
				return false;
			if (getClass() != obj.getClass())
				return false;
			Bmprovider other = (Bmprovider) obj;
			if (provideCode == null) {
				if (other.provideCode != null)
					return false;
			} else if (!provideCode.equals(other.provideCode))
				return false;
			return true;
		}
		@Override
		public String toString() {
			return "Bmprovider [address=" + address + ", area=" + area
					+ ", areaCode=" + areaCode + ", atticles=" + atticles
					+ ", images=" + images + ", introductionCode="
					+ introductionCode + ", products=" + products
					+ ", provideCode=" + provideCode + ", user=" + user
					+ ", userCode=" + userCode + ", createBy=" + createBy
					+ ", createTime=" + createTime + ", updateTime="
					+ updateTime + "]";
		}
	
		
}
